package com.water.weatherservice.controller;

import com.water.weatherservice.service.WeatherService;
import com.water.weatherservice.utils.IpUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.net.util.IPAddressUtil;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author 汪胜彬
 * @version 1.0
 */

@RestController
@Slf4j
public class weatherController {

    @Resource
    WeatherService weatherService;

    @GetMapping("weather/get")
    public String getWeather(){


        return weatherService.getWeather();
    }
}
